<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
Route::get('pages/map','index/map');
Route::get('pages/to_complete','index/to_complete');
Route::get('pages/nomenclature','index/nomenclature');
Route::get('api/getmappoint','Service/getmappoint');
Route::get('api/getBournTruckCount','Service/getBournTruckCount');
Route::get('pages/completed','index/completed');
Route::get('api/getMonthlyTotalData/:year/:month','Service/getMonthlyTotalData');
Route::get('api/getMonthlyVolumeTotal/:year/:month','Service/getMonthlyVolumeTotal');
Route::get('api/getWeekTotalData/:year/:month','Service/getWeekTotalData');
Route::get('api/getYearData','Service/getYearData');
Route::get('api/getDetailedInfo/:freightId/:orderid','Service/getDetailedInfo');
Route::get('api/getmappoint','Service/getmappoint');
Route::get('api/getwaitdata','Service/getwaitdata');
Route::get('api/getorderfind/:freightId','Service/getorderfind');
Route::get('api/cancelorder/:freightId/:mark','Service/cancelorder');
Route::get('api/queryByFreightId/:index/:freightId','Service/queryByFreightId');
Route::get('api/getCompleted/:index','Service/getCompleted');
Route::get('api/getmappoint','Service/getmappoint');
Route::get('api/getTruckAtMap','Service/getTruckAtMap');
Route::get('api/getOrderIdByTruckId/:truckid','Service/getOrderIdByTruckId');
Route::get('api/getTruckIdByTruckId/:truckid','Service/getTruckIdByTruckId');
Route::get('api/getBournAtMap','Service/getBournAtMap');
Route::get('api/getOneTruckAtMap/:truckid','Service/getOneTruckAtMap');
Route::get('pages/uncomplete','index/uncomplete');//stardotdot
Route::get('api/getUncompleteData','Service/getUncompleteData');//stardotdot
Route::get('api/changeToWaitOrder/:data','Service/changeToWaitOrder');//stardotdot
Route::get('api/getACancelOrder/:data','Service/getACancelOrder');//stardotdot
Route::post('api/getOneDayByTurckIdAndDate','Service/getOneDayByTurckIdAndDate');
Route::get('api/getCreateDateByTruckid/:truckid','Service/getCreateDateByTruckid');
Route::get('api/getOrderByTruckid/:truckid','Service/getOrderByTruckid');
Route::get('api/getWaitdataByFreightId/:freightId','Service/getWaitdataByFreightId');
Route::post('api/getBournOrderNumByName/','Service/getBournOrderNumByName');
Route::get('pages/user_management','index/user_management');
Route::get('api/getOrderBySum','Service/getOrderBySum');
Route::get('pages/allcomplete','index/allcomplete');
Route::get('pages/chartmanage','index/chartmanage');
Route::get('api/getAllBournOrderNum','Service/getAllBournOrderNum');
Route::get('pages/productionOrder','index/productionOrder');
Route::get('api/getSumVolume','Service/getSumVolume');
Route::post('api/getCustomerList','Service/getCustomerList');
Route::post('api/get_kmeans_mouth','Service/get_kmeans_mouth');

Route::post('api/getBournList','Service/getBournList');

Route::get('api/getboardList/:board','Service/getboardList');

Route::get('api/getFluteList/:flute','Service/getFluteList');

Route::get('api/getFormatList/:format','Service/getFormatList');

Route::get('api/getOrderList/:orderid','Service/getOrderList');
//Cat
Route::post('api/AddOrder','Service/AddOrder');
Route::get('api/getTBDOrder','Service/getTBDOrder');
Route::get('api/getOneInfoByOrderid/:orderid','Service/getOneInfoByOrderid');
Route::post('api/splitOrder','Service/splitOrder');
Route::get('api/getTruckList','Service/getTruckList');
Route::post('api/produceTruckId','Service/produceTruckId');
Route::post('api/autoProduction','Auto/autoProduction');
Route::get('api/getFactory','Service/getFactory');
Route::get('page/index/','index/index');
Route::get('api/getPhoneByPhone/:phone','Service/getPhoneByPhone');
Route::post('api/addFactory','Service/addFactory');
Route::post('api/deleteFactory','Service/deleteFactory');
Route::post('api/login','Front/login');
Route::get('api/logout','Index/logout');
Route::post('api/getUserInfoByPhone','Front/getUserInfoByPhone');
Route::get('api/getSendingbournByTruckid/:truckid','Service/getSendingbournByTruckid');
//yejiamin
Route::get('api/getWeekendInfo','Service/getWeekendInfo');
Route::post('api/produceFreightId/','Service/produceFreightId');
Route::get('api/getNewList/','Service/getNewList');
Route::get('api/getWeekendInfo/','Service/getWeekendInfo');
Route::get('api/imageCode/','Code/imageCode');
Route::get('api/bournManage/:index','Service/bournManage');
Route::post('api/queryBournManage/','Service/queryBournManage');
//hardinCheng
Route::post('api/getTruckPosition','Front/getTruckPosition');
Route::get('api/getTruckOrder/:phone','Front/getTruckOrder');
Route::post('api/getTruckObstacle','Front/getTruckObstacle');
Route::get('api/putTruckObstacle','Front/putTruckObstacle');
Route::post('api/getTruckAcceptOrders','Front/getTruckAcceptOrders');
Route::post('api/getTruckCancelOrders','Front/getTruckCancelOrders');
Route::post('api/getTruckEndOrders','Front/getTruckEndOrders');
Route::post('api/getUserModifyInformation','Front/getUserModifyInformation');
Route::post('api/removeHazardPoint','Front/removeHazardPoint');
Route::post('api/getsetTruckSingleState','Front/getsetTruckSingleState');
Route::post('api/getsetObstaclePoint','Front/getsetObstaclePoint');
Route::post('api/getUserDeliveryTotal','Front/getUserDeliveryTotal');
Route::post('api/getAlreadyOrderInfo','Front/getAlreadyOrderInfo');
Route::get('api/getHistoricalOrder/:phone','Front/getHistoricalOrder');
Route::post('api/getGaodeavoid','GaodeAvoid/getGaodeavoid');
Route::post('api/getPhoneKilometre','Front/getPhoneKilometre');
Route::get('api/getTruckOrderDetailedTwo/:freightId','Front/getTruckOrderDetailedTwo');
//Route::get('api/getTruckOrderDetailed/:freightId/:phone/:id','Front/getTruckOrderDetailed');
Route::get('api/getTruckOrderDetailed/:phone/:freightId','Front/getTruckOrderDetailed');
//wz
Route::get('pages/ability','index/ability');
Route::get('pages/factory_management','index/factoryManagement');
Route::get('pages/hot_map','index/hotMap');//hcx
Route::get('pages/bourn_management','index/bournManagement');
Route::get('pages/about','index/about');
Route::get('api/download','Service/download');
Route::get('api/getAllUser','Service/getAllUser');
Route::get('api/getSearchTruck/:phone','Service/getSearchTruck');
Route::post('api/addUser','Service/addUser');
Route::post('api/deleteUser','Service/deleteUser');
Route::post('api/updateUser','Service/updateUser');
Route::get('api/removeFreight/:freightId','Service/removeFreight');

//czy
Route::get('pages/hot_maps','index/hotMaps');
Route::get('pages/pathAnalysis','index/pathAnalysis');
Route::post('api/getHotMaps','Service/getHotMaps');

// Route::post('api/removeHazardPoint','Front/removeHazardPoint');


return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],

];
